package com.foxcai.novel.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Convert {

	public static String TimeConvert(long mill) {
		Date date = new Date(mill*1000L);
		String strs = "";
		try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			strs = sdf.format(date);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return strs;
	}

	public static void main(String[] args) {
		System.out.println(TimeConvert(1310374610));
	}
}
